package GUI;

import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.LayoutManager;

import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;

public class GUI_page04_Manager extends JPanel {

	JLabel titleLabel;
	JButton returnButton;
	JButton addSupplierButton;
	JButton removeSupplierButton;
	JButton processShipmentButton;
	JButton processOrderButton;
	JButton dailySalesReportButton;
	JButton topSellingItemsButton;
	
	public GUI_page04_Manager() {
		this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
		this.setBackground(Color.white);
		// title label
		titleLabel = new JLabel("AMS Manager Menu", JLabel.CENTER);
		titleLabel.setVerticalTextPosition(JLabel.CENTER);
		
		titleLabel.setHorizontalTextPosition(JLabel.CENTER);
		titleLabel.setAlignmentX(Component.LEFT_ALIGNMENT);
		titleLabel.setFont(new Font("Century Gothic", Font.BOLD, 20));
		titleLabel.setForeground(Color.gray);
        this.add(titleLabel);
        
        this.add(Box.createRigidArea(new Dimension(0,20)));

        // return button
        returnButton = GUI_AMSStoreMain.makeGrayWhiteButton("Back", Component.LEFT_ALIGNMENT);
        this.add(returnButton);
        
        this.add(Box.createRigidArea(new Dimension(0,10)));

        // add supplier button
        addSupplierButton = GUI_AMSStoreMain.makeGrayWhiteButton("Add Supplier", Component.LEFT_ALIGNMENT);
        this.add(addSupplierButton);
        
        this.add(Box.createRigidArea(new Dimension(0,5)));

        // remove supplier button
        removeSupplierButton = GUI_AMSStoreMain.makeGrayWhiteButton("Remove Supplier", Component.LEFT_ALIGNMENT);
        this.add(removeSupplierButton);
        
        this.add(Box.createRigidArea(new Dimension(0,5)));

        // process shipment button
        processShipmentButton = GUI_AMSStoreMain.makeGrayWhiteButton("Process Shipment", Component.LEFT_ALIGNMENT);
        this.add(processShipmentButton);
        
        this.add(Box.createRigidArea(new Dimension(0,5)));
        
        // process order button
        processOrderButton = GUI_AMSStoreMain.makeGrayWhiteButton("Process Delivery of Order", Component.LEFT_ALIGNMENT);
        this.add(processOrderButton);
        
        this.add(Box.createRigidArea(new Dimension(0,5)));

        // button for viewing the daily sales report
        dailySalesReportButton = GUI_AMSStoreMain.makeGrayWhiteButton("View Daily Sales Report", Component.LEFT_ALIGNMENT);
        this.add(dailySalesReportButton);
        
        this.add(Box.createRigidArea(new Dimension(0,5)));

        // button for viewing the top selling items
        topSellingItemsButton = GUI_AMSStoreMain.makeGrayWhiteButton("View Top Selling Items", Component.LEFT_ALIGNMENT);
        this.add(topSellingItemsButton);
	}

}
